package com.cuit.eduservice.client;

import com.cuit.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="service-vod",fallback =VodClientImpl.class)
@Component
public interface VodClient {
    //定义调用方法的路径
    @DeleteMapping("/vod/video/deleteByAlyId/{id}")
    public R deleteByAlyId(@PathVariable("id") String id);
    @DeleteMapping("/vod/video/deleteByBatchIds")
    public R deleteByBatchIds(@RequestParam("videoIdList") List<String> videoIdList);
}
